package com.bonuo.crm.service.impl;

import com.bonuo.crm.domain.Year;
import com.bonuo.crm.mapper.YearMapper;
import com.bonuo.crm.service.YearService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class YearServiceImpl implements YearService {
    @Autowired
    private YearMapper yearMapper;

    @Override
    public List<Year> selectYearList(Year year) {
        return yearMapper.selectYearList(year);
    }

    @Override
    public Integer add(Year year) {
        return yearMapper.add(year);
    }

    @Override
    public Integer update(Year year) {
        return yearMapper.update(year);
    }

    @Override
    public Integer delete(Integer id) {
        return yearMapper.delete(id);
    }

    @Override
    public Integer selectYearByYear(String year) {
        return yearMapper.selectYearByYear(year);
    }
}
